<template>
  <!-- 组件结构 -->
  <div class="demo">
    <span>学校名称：{{ schoolName }}</span>
    <span>学校地址：{{ schoolAddress }}</span>
    <button @click="tips">click me</button>
  </div>
</template>

<script>
// 组件交互
export default {
  name: "Student",
  data() {
    return {
      studentName: "chen",
      studentAddress: "桥洞",
    };
  },
};
// 要使文件可以被导包，需要把它暴露出来：
// export { student };
// export default student;
</script>

<style>
/* 组件样式 */
.demo {
  background-color: rgb(255, 0, 0);
}
</style>
